package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.DishAndFlavor;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface DishService {
    boolean hasCateId(Long id);

    void savDish(HttpServletRequest request, DishAndFlavor dish);

    R pageCategory(int page, int pageSize, String name);

    DishAndFlavor getDishById(Long id);

    void updateDish(HttpServletRequest request, DishAndFlavor dish);

    int selectDishByName(String name);

    void updateStatusById(Integer status,Long[] ids);

    void deleteDish(Long[] ids);

    List<DishAndFlavor> selectListByCategoryId(Long categoryId);
}
